package com.data.web.controller.sensor.table;

import com.data.biz.dto.PowerDataDTO;
import com.data.biz.service.IBizPowerDataService;
import com.data.biz.service.IBizPowerPlantService;
import com.data.biz.service.IBizPowerStatisticsService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;
import java.util.List;


/**
 *  功率统计
 * 
 * @author xzp
 */
@Controller
@RequestMapping("/sensor/table")
public class TableViewController {
	private String prefix = "sensor/table";
	@Autowired
	private IBizPowerStatisticsService powerStatisticsService;
	@Autowired
	private IBizPowerPlantService powerPlantService;
	@Autowired
	private IBizPowerDataService iBizPowerDataService;

	@RequiresPermissions("sensor:table:view")
	@GetMapping()
	public String powerstatistics(ModelMap map)
	{

		//prefix指resources下的文件夹路径, 后面的/table指html文件名称
		return prefix + "/table";
	}

}
